package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.StudentSunxuMapper;
import com.ruoyi.system.domain.StudentSunxu;
import com.ruoyi.system.service.IStudentSunxuService;

/**
 * 学生表sxService业务层处理
 * 
 * @author sunxu
 * @date 2025-02-13
 */
@Service
public class StudentSunxuServiceImpl implements IStudentSunxuService 
{
    @Autowired
    private StudentSunxuMapper studentSunxuMapper;

    /**
     * 查询学生表sx
     * 
     * @param id 学生表sx主键
     * @return 学生表sx
     */
    @Override
    public StudentSunxu selectStudentSunxuById(Long id)
    {
        return studentSunxuMapper.selectStudentSunxuById(id);
    }

    /**
     * 查询学生表sx列表
     * 
     * @param studentSunxu 学生表sx
     * @return 学生表sx
     */
    @Override
    public List<StudentSunxu> selectStudentSunxuList(StudentSunxu studentSunxu)
    {
        return studentSunxuMapper.selectStudentSunxuList(studentSunxu);
    }

    /**
     * 新增学生表sx
     * 
     * @param studentSunxu 学生表sx
     * @return 结果
     */
    @Override
    public int insertStudentSunxu(StudentSunxu studentSunxu)
    {
        return studentSunxuMapper.insertStudentSunxu(studentSunxu);
    }

    /**
     * 修改学生表sx
     * 
     * @param studentSunxu 学生表sx
     * @return 结果
     */
    @Override
    public int updateStudentSunxu(StudentSunxu studentSunxu)
    {
        return studentSunxuMapper.updateStudentSunxu(studentSunxu);
    }

    /**
     * 批量删除学生表sx
     * 
     * @param ids 需要删除的学生表sx主键
     * @return 结果
     */
    @Override
    public int deleteStudentSunxuByIds(Long[] ids)
    {
        return studentSunxuMapper.deleteStudentSunxuByIds(ids);
    }

    /**
     * 删除学生表sx信息
     * 
     * @param id 学生表sx主键
     * @return 结果
     */
    @Override
    public int deleteStudentSunxuById(Long id)
    {
        return studentSunxuMapper.deleteStudentSunxuById(id);
    }
}
